add options fpr boundary layer and some fixes