some fixes

add crop and some fixes